package day1201parking;

import java.math.BigDecimal;

public class Car {
	public double getHeight() {
		return height;
	}
	public void setHeight(double height) {
		this.height = height;
	}
	public long getStime() {
		return stime;
	}
	public void setStime(long stime) {
		this.stime = stime;
	}
	public long getEtime() {
		return etime;
	}
	public void setEtime(long etime) {
		this.etime = etime;
	}
	
	
	public String getNumber() {
		return number;
	}
	public void setNumber(String number) {
		this.number = number;
	}

	private String number;//车牌号
	private  double height;//当前车的高度
	private long stime;//开始停车的时间
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public BigDecimal getBill() {
		BigDecimal a = new BigDecimal(String.valueOf(this.etime - this.stime));
		BigDecimal b = new BigDecimal("1800000");
		a=a.divide(b,6,BigDecimal.ROUND_HALF_DOWN);
		return a;
	}
	public void setBill(BigDecimal bill) {
		this.bill = bill;
	}


	private long etime;//取车的时间
	private String id;//当前停车的车位号
	private BigDecimal bill;//当前的账单，保留5位小数

}
